﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Action.SPI
{
    [Serializable]
    public class RemoteInvokeContext
    {
        public RemoteInvokeContext()
        {
            ParamList = new Dictionary<string, object>();
        }
        public Dictionary<string, object> ParamList { get;set; }
        public string InvokeSID { get; set; }
        public int Count
        {
            get
            {
                if (ParamList != null)
                    return ParamList.Count;
                return 0;
            }
        }


        public void AddParam(string key, object value)
        {
            ParamList[key] = value;
        }

    }
}
